export default {
  /**@SET_TOKEN 将token设置到state里*/
  SET_TOKEN_STATE(state, token) {
    state.token = token;
  },
  /**@SET_NICKNAME 将token设置到state里*/
  SET_NICKNAME_STATE(state,nickName){
    state.nickName=nickName
  },
  /**@CLEAR_USER_IN{FO 退出登陆清空用户信息*/
  CLEAR_USER_INFO(state){
    state.token=""
    state.nickName=""
    localStorage.removeItem("user_token")
  }
};
